Initializes a new instance of the ZipPackageReader class with the specified zipped package. Uses the specified user's credentials to access package files.
Parent Type: ZipPackageReader
Namespace: Microsoft.LearningComponents
Assembly: Microsoft.LearningComponents.dll
| C# |
|
public ZipPackageReader ( ) |
filePath
The path to the zipped file containing the package, e.g. "C:\Foo\Bar.zip".
impersonationBehavior
The identity to use when accessing package files.
| Exception type | Condition |
| ArgumentNullException | filePath is a null reference. |
| SecurityException | The caller does not have the required permission. |
| ArgumentException | The file name is empty, contains only white spaces, or contains invalid characters. |
| PathTooLongException | The specified path, file name, or both exceed the system-defined maximum length. For example, on Windows-based platforms, paths must be less than 248 characters, and file names must be less than 260 characters. |
| NotSupportedException | filePath contains a colon (:) in the middle of the string. |
This constructor does not check if the file exists. This constructor is a placeholder for a string that is used to access the file in subsequent operations.
The filePath parameter can be a directory on a network file share accessible via a mapped drive letter or UNC path.